import { http } from '@/utils/http'
import { post } from '@/utils/http'

/**
 * 数据看板订单数
 */
export const databoardorderCount = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/orderCount',
    data,
  })
}

/**
 * 数据看板车辆出租率
 */
export const databoardcarUseRate = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/carUseRate',
    data,
  })
}

/**
 * 总览
 */
export const databoardbriefReport = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/briefReport',
    data,
  })
}

/**
 * 车辆库存统计
 */
export const carStockStatistics = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/carStockStatistics',
    data,
  })
}

/**
 * 门店预计收益
 */
export const databoardselectStoreRevenue = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/selectStoreRevenue',
    data,
  })
}

/**
 * 订单收益统计
 */
export const databoardorderRevenue = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/orderRevenue',
    data,
  })
}

/**
 * 订单量统计
 */
export const databoardorderCounts = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/databoard/orderCountDetail',
    data,
  })
}
/**
 * 机构
 */
export const selectAuthListByOrgNameLike = (data: any) => post({ url: '/org/selectAuthListByOrgNameLike', data })
